﻿using Framework.Core.ObjectMapper.Mapster;
using Framework.Core.Startup;

namespace Framework.SqlSugar.Test
{
	public class RunAppStartup : StartupModule<RunAppStartup>
	{
		public override void ConfigureServices(WebApplicationBuilder webApplicationBuilder)
		{
			//webApplicationBuilder.Services.AddSingleton(new AppSettings(webApplicationBuilder.Configuration));
			webApplicationBuilder.Services.AddControllers();
			webApplicationBuilder.Services.AddMapster();
			webApplicationBuilder.Services.AddSqlSugar();

		}

		public override void Configure(WebApplication webApplication)
		{
			webApplication.UseHttpsRedirection();

			webApplication.UseAuthorization();

			webApplication.MapControllers();
		}
	}
}
